<?php
$id = $_POST['id'];

$conn = new mysqli("localhost", "root", "", "simple_weibo");
$conn->query("set names 'utf8'");
$sql = "delete from weibo_list where weibo_id=".$id;
$res = $conn->query($sql);

$sqlsql = "delete from weibo_comment where weibo_id = ".$id;
$resres = $conn->query($sqlsql);

$sqlsqlsql = "delete from weibo_kidcomment where weibo_id = ".$id;
$resresres = $conn->query($sqlsqlsql);
if($res){
    echo "成功删除微博";
}else{
    echo "删除微博失败";
}